package com.guomao;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @Author:zxh
 * @Description:
 * @Date: 2020/9/17
 * @Modified By:
 */
public class Recording {
    //1.job.getDate("create_time").toInstant().atZone(ZoneId.systemDefault()).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))
    //https://developer.ibm.com/zh/technologies/java/articles/j-lo-java8streamapi/
    // 2.stream并发： records.stream():
//                .collect(Collectors.groupingBy(record -> record.getStr("id")))
//            .entrySet().parallelStream().collect(Collectors.toMap(entry -> entry.getKey(), entry -> {z
    public static void main(String[] args) {
        int i = 1;
        String[] ste = {"1","3","4"};
        List<String> list = Arrays.asList(ste);
        StringBuilder stringBuilder = new StringBuilder();

        for (String project:list) {
            stringBuilder.append(project);
            if (i < list.size()) {
                stringBuilder.append(",");
            }
            i++;
        }
        System.out.println(stringBuilder.toString());
    }
}
